all: destino server

destino:
	test -d ../bin || mkdir ../bin

server: server.o
	gcc -Wall server.o -o ../bin/server -g -D_REENTRANT -lpthread

server.o: server.h server.c ../client/client.h
	gcc -Wall -c -g server.c -lpanel -lncurses

clean:
	rm -rf *.o
	rm -rf ../bin/server
